package com.project.server.domain.operate;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 运营管理办事指南对象 t_operate_affair
 *
 * @author project
 * @date 2021-07-01
 */
public class TOperateAffair extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 办事ID
     */
    private Long affairId;

    /**
     * 办事内容
     */
    @Excel(name = "办事内容")
    private String affairDetails;

    /**
     * 办事标题
     */
    @Excel(name = "办事标题")
    private String affairTitle;

    /**
     * 办事人
     */
    @Excel(name = "办事人")
    private String affairAuthor;

    /**
     * 是否显示0显示 1不显示
     */
    @Excel(name = "是否显示" , readConverterExp = "0=显示,1=不显示")
    private String isDisplay;

    /**
     * 是否置顶（1置顶 2不置顶）
     */
    @Excel(name = "是否置顶", readConverterExp = "1=置顶,2=不置顶")
    private String isTop;

    /**
     * 办事类型
     */
    @Excel(name = "办事类型" , readConverterExp = "0=行政许可,1=非行政许可")
    private String affairType;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date affairaffairDatetime;

    /**
     * 点击次数
     */
    @Excel(name = "点击次数")
    private Long contentHit;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setAffairId(Long affairId) {
        this.affairId = affairId;
    }

    public Long getAffairId() {
        return affairId;
    }

    public void setAffairDetails(String affairDetails) {
        this.affairDetails = affairDetails;
    }

    public String getAffairDetails() {
        return affairDetails;
    }

    public void setAffairTitle(String affairTitle) {
        this.affairTitle = affairTitle;
    }

    public String getAffairTitle() {
        return affairTitle;
    }

    public void setAffairAuthor(String affairAuthor) {
        this.affairAuthor = affairAuthor;
    }

    public String getAffairAuthor() {
        return affairAuthor;
    }

    public void setIsDisplay(String isDisplay) {
        this.isDisplay = isDisplay;
    }

    public String getIsDisplay() {
        return isDisplay;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }

    public String getIsTop() {
        return isTop;
    }

    public void setAffairType(String affairType) {
        this.affairType = affairType;
    }

    public String getAffairType() {
        return affairType;
    }

    public void setAffairaffairDatetime(Date affairaffairDatetime) {
        this.affairaffairDatetime = affairaffairDatetime;
    }

    public Date getAffairaffairDatetime() {
        return affairaffairDatetime;
    }

    public void setContentHit(Long contentHit) {
        this.contentHit = contentHit;
    }

    public Long getContentHit() {
        return contentHit;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("affairId", getAffairId())
                .append("affairDetails", getAffairDetails())
                .append("affairTitle", getAffairTitle())
                .append("affairAuthor", getAffairAuthor())
                .append("isDisplay", getIsDisplay())
                .append("isTop", getIsTop())
                .append("affairType", getAffairType())
                .append("affairaffairDatetime", getAffairaffairDatetime())
                .append("contentHit", getContentHit())
                .append("createBy", getCreateBy())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
